package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.ScheduledDao;
import com.codi.bus.core.domain.Scheduled;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ScheduledDaoImpl extends GeneratedBaseDaoImpl<Scheduled> implements ScheduledDao {
    @Override
    public Scheduled selectByScheduledProtocolId(String scheduledProtocolId) {
        return this.getObject(this.generateStatement("selectByScheduledProtocolId"),scheduledProtocolId);
    }

    @Override
    public List<Scheduled> findAll() {
        List<Scheduled> list = this.findList(this.generateStatement("findAll"),"");
        return list;
    }

    @Override
    public List<Scheduled> findListByIsValid(String isValid) {
        List<Scheduled> list = this.findList(this.generateStatement("findListByIsValid"),isValid);
        return list;
    }
}
